<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>个人中心 - ${title}</title> 
<link type="text/css" rel="stylesheet" href="/res/front/css/sytle/user-css/user_message.css" />
<!-- <link rel="stylesheet" href="/res/front/css/sytle/jquery-ui-css/jquery-ui.css" />
<script type="text/javascript" src="/res/front/js/js/jquery-1.5.1.js"></script>
<script type="text/javascript" src="/res/front/js/js/jquery-ui-1.8.11.js"></script>  -->
<#include "/front/head.html"/>
<script type="text/javascript" charset="utf-8">
        function getTableForm() {
        	return document.getElementById('jvForm');
        }
        function getYED(){
        	$.post(
        		'${base}/member/o_tyedtransferoutSave.jspx',
        		$('#moditytpwd').serialize(),
        		function(msg){
        			if(1==msg){
        				alert("申请已提交,我们会在一到两个工作日内处理.")
        			$("#dialog_withdraw").dialog ("close");
        			$("#moditytpwd input").val('');
        			history.go(0);
        			}else{
        				alert("申请提交异常...")
        			}
        		}
        	)
        }
        $(function() {
        $( "#dialog_withdraw" ).dialog({
			autoOpen: false,
			modal: true,
			show: "blind",
			hide: "explode",
			width: 680,
			height: 380,
			buttons : {
		    "提交" : function (){
		    	if(parseFloat($("#moneyconfirm").val())<parseFloat($("#moneysubmit").val())){
		    		alert("该次转出金额不得超过"+$("#moneyconfirm").val()+"元");
		    		$("#moneysubmit").val('');
		    		return;
		    	}
		    	getYED();
				},
			"关闭" : function (){
				$("#dialog_withdraw").dialog ("close");}}
		});
        <#list pagination.list! as entity>
		$( "#open_withdraw${entity.trid}" ).click(function() {
			$("#tridsubmit").val('${entity.trid}');
			$("#moneyconfirm").val($("#open_withdraw${entity.trid}").attr('tag'));
			$( "#dialog_withdraw" ).dialog( "open" );
			return false;
		});
		</#list>
		
			$('table tbody tr:odd').css('background-color','#f6fbff');
			$('table tbody tr:even').css('background-color','#ffffd5');
		
			$( document ).tooltip({
				track: true
			});
        });
        </script>
	</head>
<!---------- 投标列表页面\ROOT\WEB-INF\front\member\tenderList.html ---------->
	<body>
    	<!-- 头部 header.html -->
    	<#include "/front/common/header.html"/>
        <!-- 中部 -->
        <div class="memeber_middle">
        	<div class="member_location_div">
                <span>
                    <b><a href="/index.jspx">首页</a></b>&nbsp;>
                    <b>投资管理</b>&nbsp;>
                    <b>投资列表</b>
                </span>
            </div>
        	<div class="memeber_record_centre">
                <!-- 左边目录 -->
                <div class="memeber_left_nav_div">
                    <#include "/front/member/会员中心页_导航.html"/>
                </div>
                <!-- 右边目录明细 -->
                <div class="tender_record_right_detail_div">
                	<div class="tenderList_div">
                    	<div class="tenderList_title_header"><b>投资列表</b></div>
                        <div class="tender_list_div">
                            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                <thead>
                                    <tr>
                                        <td width="120" height="40" align="center">标的</td>
                                        <td width="100" align="center">投标金额</td>
                                        <td width="90" align="center">投标时间</td>
                                        <td width="80" align="center">投标理由</td>
                                        <td width="100" align="center">计息金额</td>
                                        <td width="90" align="center">下一收款日期</td>
                                        <td width="90" align="center">下一收款金额</td>
                                        <td width="50" align="center">年利率</td>
                                        <td width="70" align="center">操作</td>
                                    </tr>
                                </thead>
                                <tbody>
                                	<#list pagination.list! as entity>
                                        <tr>
                                        	<td height="45" title="${entity.tfinanceinfo.financekey!}">
                                        		<a class="ten_td_1" onclick="linkTo('fiid',${entity.tfinanceinfo.fiid},'sf1')"  target="_blank">${entity.tfinanceinfo.financekey!}</a>
                               	      </td>
                                            <td align="center">
                                            	${(entity.tdmoney!0)?string.currency}
                                            </td>
                                            <td align="center">
                                            	${(entity.tddatetime!0)?string("yyyy-MM-dd")}
                                            </td>
                                            <td title="${entity.tdreason!}">
                                            	${entity.tdreason!'&nbsp;'?string}
                                            </td>
                                            <td align="center">
                                            	${(entity.mibmoney!0)?string.currency}
                                            </td>
                                            <td align="center">
                                                <#if (entity.tfinanceinfo.targettype==8)>
                                                	明天
                                                <#else>
                                                <#if entity.tfinanceinfo.nrdate??>
                                                	${(entity.tfinanceinfo.nrdate!)?string("yyyy-MM-dd")}<!-- ?string("yyyy-MM-dd") -->
                                                 <#else>
	                                            &nbsp;	
                                                </#if>
                                                </#if>
                                            </td>
                                        	<td align="center">
                                        	<#if (entity.tfinanceinfo.targettype==8)>
                                        	${(entity.mibmoney*entity.financepa/365)?string.currency}
                                        	 <#else>
                                        	 <#if entity.tfinanceinfo.subpri??>
                                        	 ${((entity.tdmoney/entity.tfinanceinfo.financeamount*entity.tfinanceinfo.subpri)+(entity.tdmoney/entity.tfinanceinfo.financeamount*entity.tfinanceinfo.alino))?string.currency}
                                        	 <#else>
                                        	 &nbsp;
                                        	 </#if>
                                        	</#if>
                                        	</td>
											<td align="center">
                                        	#{(entity.financepa!*100); m2M2}%
                                        	</td>
                                            <!-- <td bgcolor="#FFFFFF">
                                            <#list istransferMap?keys as idKey><#if idKey==(entity.istransfer!0)?string> ${istransferMap[idKey]}</#if></#list>
                                            </td>
                                            <td bgcolor="#FFFFFF">
                                            ${entity.tsfmoney!}
                                            </td> -->
                                            <td align="center">
                                            	<#if (entity.tfinanceinfo.targettype==8)>
                                            		<a href="javascript:void(0);" id="open_withdraw${entity.trid}" tag="${entity.mibmoney}" >申请转出</a>
	                                            <#else>
	                                            &nbsp;	
                                            	</#if>
                                            </td>
                                        </tr>
                                	</#list>
                                </tbody>
                            </table>
                            <form id="jvForm" action="v_trechargeList.do" method="post">
                                <input type="hidden" name="pageNo" value=""/>
                                <div style="width:900px; text-align:center; margin-top:20px;">
            共 ${pagination.totalCount} 条&nbsp;
            每页 ${pagination.pageSize} 条&nbsp;
                           <!-- <input type="text" value="20" style="width:30px" onfocus="this.select();" onblur="$.cookie('_cookie_page_size',this.value,{expires:3650});" onkeypress="if(event.keyCode==13){$(this).blur();return false;}"/>-->

            <input type="button" class="first-page"value="首 页" onclick="_gotoPage('1');"<#if pagination.firstPage> disabled="disabled"</#if>/>
            <input type="button" class="pre-page" value="上一页" onclick="_gotoPage('${pagination.prePage}');"<#if pagination.firstPage> disabled="disabled"</#if>/>
            <input type="button" class="next-page" value="下一页" onclick="_gotoPage('${pagination.nextPage}');"<#if pagination.lastPage> disabled="disabled"</#if>/>
            <input type="button" class="last-page" value="尾 页" onclick="_gotoPage('${pagination.totalPage}');"<#if pagination.lastPage> disabled="disabled"</#if>/>&nbsp;
            当前 ${pagination.pageNo}/${pagination.totalPage} 页 &nbsp;转到第<input type="text" id="_goPs" style="width:50px" onfocus="this.select();" onkeypress="if(event.keyCode==13){$('#_goPage').click();return false;}"/>页
            <input id="_goPage" class="go"  type="button" value="转" onclick="_gotoPage($('#_goPs').val());"<#if pagination.totalPage==1> disabled="disabled"</#if>/>
                                </div>
                            </form>
                            <script type="text/javascript"> 
								function _gotoPage(pageNo) {
									try{
										var tableForm = getTableForm();
										$("input[name=pageNo]").val(pageNo);
										tableForm.action="/member/v_ttenderrecordList.jspx";
										tableForm.onsubmit=null;
										tableForm.submit();
									} catch(e) {
										alert('_gotoPage(pageNo)方法出错');
									}
								}
							</script> 
                            <form action="/member/v_tfinanceinfoDetail2.jspx" method="post" id="sf1" target="_blank">
                                <input type="hidden" name="fiid" id="fiid"/>
                            </form>
                            <div class="safety_li_form" id="dialog_withdraw" title="余额贷申请转出">
                                <div class="safetyli_1"></div><br />
                                <div class="safetyli_1">额贷的资金到期后你可以转出，到期后转出不收费，如果不转出，余额贷的资金会继续计算收益。如果您需要提前转出余额贷的资金，我们将会收取"提前赎回费"，根据各产品收取提前赎回费，如下：1月期的收取转出资金的0.25%，3月期的收取转出资金的0.75%，6月期的收取转出资金的1.25%，9月期的收取转出资金的1.5%，12月期的收取转出资金的2%。
                                </div><br />
                                <div>
                                    <form action="" method="post" id="moditytpwd">
                                        <div class="safetyli_6">
                                            <span style="margin-right:10px;">
                                                <span style="color:#FF0000;">*</span>
                                                输入转出金额:
                                            </span>
                                            <input type="text" id="moneysubmit" name="money" class="" maxlength="15"/>
                                            <input type="hidden" id="tridsubmit" name="trid" value="" />
                                            <input type="hidden" id="moneyconfirm" name="" value="" />
                                        </div>
                                    </form>
                                </div>
                            </div> 
                        </div>
                    </div>
                </div>
                <div style="clear:both;"></div>
            </div>
        </div>
        <!-- 底部 -->
        <#include "/front/common/footer.html"/>	
	</body>
</html>
 